/* ============================================
   TUTORIAL AGENDAMENTOS - CSS COMPLETO CORRIGIDO
   Responsividade real: 320px | 360px | 480px | 640px | 736px | 768px | 1024px+
   ============================================ */

/* ============================================
   RESET CRÍTICO - EVITA SCROLL HORIZONTAL
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================
   BASE
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
    max-width: 100%;
    /* CRÍTICO: nunca usar padding-bottom no body com nav fixed */
}

/* ============================================
   MODO CLARO - BASE
   ============================================ */

.light body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.light header {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

.light .bg-slate-900:not(header) {
    background-color: #ffffff !important;
}
.light .bg-slate-950 {
    background-color: #ffffff !important;
}
.light .bg-slate-800 {
    background-color: #f1f5f9 !important;
}
.light .bg-slate-800\/50 {
    background-color: #e2e8f0 !important;
}
.light .bg-slate-900\/50,
.light .bg-slate-900\/60 {
    background-color: #f1f5f9 !important;
}
.light .bg-slate-950\/50,
.light .bg-slate-950\/80,
.light .bg-slate-900\/95,
.light .bg-slate-900\/98 {
    background-color: #ffffff !important;
}

/* ============================================
   MODO CLARO - TEXTOS
   ============================================ */

.light .text-white {
    color: #0f172a !important;
}
.light .text-slate-300 {
    color: #334155 !important;
}
.light .text-slate-400 {
    color: #64748b !important;
}
.light .text-slate-500 {
    color: #64748b !important;
}
.light .text-slate-600 {
    color: #475569 !important;
}
.light p {
    color: #475569 !important;
}
.light h2,
.light h3,
.light h4 {
    color: #0f172a !important;
}
.light strong {
    color: inherit !important;
    font-weight: 700 !important;
}
.light ul li span {
    color: #334155 !important;
}
.light ::placeholder {
    color: #94a3b8 !important;
}

/* Textos coloridos - modo claro */
.light .text-blue-400       { color: #2563eb !important; }
.light .text-blue-200\/90   { color: #1e293b !important; }
.light .text-emerald-400    { color: #059669 !important; }
.light .text-emerald-200\/90{ color: #065f46 !important; }
.light .text-green-400      { color: #059669 !important; }
.light .text-green-200\/90  { color: #065f46 !important; }
.light .text-cyan-400       { color: #0891b2 !important; }
.light .text-cyan-200\/90   { color: #164e63 !important; }
.light .text-purple-400     { color: #7c3aed !important; }
.light .text-purple-200\/90 { color: #4c1d95 !important; }
.light .text-yellow-400     { color: #ca8a04 !important; }
.light .text-yellow-200\/90 { color: #713f12 !important; }
.light .text-orange-400     { color: #ea580c !important; }
.light .text-red-400        { color: #dc2626 !important; }
.light .text-red-200\/90    { color: #991b1b !important; }
.light .text-indigo-400     { color: #4338ca !important; }
.light .text-pink-400       { color: #db2777 !important; }

/* ============================================
   MODO CLARO - BORDAS
   ============================================ */

.light .border-slate-700       { border-color: #94a3b8 !important; }
.light .border-slate-800       { border-color: #cbd5e1 !important; }
.light .border-blue-500\/20    { border-color: #93c5fd !important; }
.light .border-blue-500\/30    { border-color: #60a5fa !important; }
.light .border-emerald-500\/20 { border-color: #6ee7b7 !important; }
.light .border-emerald-500\/30 { border-color: #34d399 !important; }
.light .border-green-500\/20   { border-color: #6ee7b7 !important; }
.light .border-cyan-500\/20    { border-color: #67e8f9 !important; }
.light .border-purple-500\/20  { border-color: #d8b4fe !important; }
.light .border-orange-500\/20  { border-color: #fdba74 !important; }
.light .border-red-500\/20     { border-color: #fca5a5 !important; }
.light .border-yellow-500\/20  { border-color: #fde047 !important; }
.light .divide-slate-800\/50 > * + * { border-color: #e2e8f0 !important; }

/* ============================================
   MODO CLARO - BACKGROUNDS COLORIDOS
   ============================================ */

.light .bg-blue-500\/5         { background-color: #eff6ff !important; }
.light .bg-blue-500\/10        { background-color: #dbeafe !important; }
.light .bg-emerald-500\/5      { background-color: #ecfdf5 !important; }
.light .bg-emerald-500\/10     { background-color: #d1fae5 !important; }
.light .bg-emerald-500\/20     { background-color: #a7f3d0 !important; }
.light .bg-green-500\/5        { background-color: #f0fdf4 !important; }
.light .bg-green-500\/10       { background-color: #d1fae5 !important; }
.light .bg-cyan-500\/5         { background-color: #ecfeff !important; }
.light .bg-cyan-500\/10        { background-color: #cffafe !important; }
.light .bg-purple-500\/5       { background-color: #f5f3ff !important; }
.light .bg-purple-500\/10      { background-color: #e9d5ff !important; }
.light .bg-orange-500\/5       { background-color: #fff7ed !important; }
.light .bg-orange-500\/10      { background-color: #fed7aa !important; }
.light .bg-red-500\/5          { background-color: #fef2f2 !important; }
.light .bg-red-500\/10         { background-color: #fecaca !important; }
.light .bg-yellow-500\/5       { background-color: #fefce8 !important; }
.light .bg-yellow-500\/10      { background-color: #fef3c7 !important; }
.light .bg-pink-500\/10        { background-color: #fce7f3 !important; }
.light .bg-indigo-500\/10      { background-color: #e0e7ff !important; }

/* ============================================
   MODO CLARO - GRADIENTES E ESPECIAIS
   ============================================ */

.light .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f0fdf4, #dbeafe) !important;
}

.light input:disabled {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    opacity: 1 !important;
}

.light i[data-lucide] {
    opacity: 1 !important;
}

.light .bg-slate-900 thead,
.light .bg-slate-900\/80 {
    background-color: #f1f5f9 !important;
}

/* ============================================
   LOGO CONTRAST
   ============================================ */

.bg-contrast-logo {
    background-color: rgba(30, 41, 59, 0.5);
}

.light .bg-contrast-logo {
    background-color: #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
}

/* ============================================
   DESTAQUES DE TEXTO
   ============================================ */

.texto-destaque {
    text-shadow: -2px 3px 5px oklch(43.2% 0.095 166.913);
}

.texto-destaque2 {
    text-shadow: -1px 1px 0px oklch(43.2% 0.095 166.913);
}

/* ============================================
   BOTÕES
   ============================================ */

.go-config {
    background-color: oklch(59.6% 0.145 163.225);
    transition: transform 0.2s;
    box-shadow: -1px 2px 3px black;
}

.go-config:hover {
    background-color: oklch(69.6% 0.17 162.48);
    transform: scale(1.05);
}

.light .go-config {
    background-color: oklch(76.5% 0.177 163.223);
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light .go-config:hover {
    background-color: oklch(80.1% 0.16 158.449);
    transform: scale(1.05);
}

.light .go-suport {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light .go-suport:hover {
    background-color: #cbd5e1 !important;
    transform: scale(1.05);
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.light #theme-toggle-btn {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

.light #theme-toggle-btn:hover {
    background-color: #e2e8f0 !important;
    color: #10b981 !important;
}

/* ============================================
   TUTORIAL CARDS
   ============================================ */

.tutorial-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    /* CRÍTICO: evita que cards extravasem a largura */
    max-width: 100%;
    overflow: hidden;
}

.tutorial-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.light .tutorial-card {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.light .tutorial-card:hover {
    border-color: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #1e293b;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   COLLAPSIBLE / FAQ
   ============================================ */

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.active {
    max-height: 2000px;
}

/* ============================================
   HIDE SCROLLBAR
   ============================================ */

.hide-scrollbar,
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   NAVEGAÇÃO LATERAL - DESKTOP
   ============================================ */

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.side-nav-link:hover {
    background-color: rgba(51, 65, 85, 0.4);
}

.side-nav-link.active {
    background-color: rgba(16, 185, 129, 0.12);
}

.side-nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.side-nav-link:hover .side-nav-indicator {
    background-color: #94a3b8;
}

.side-nav-link.active .side-nav-indicator {
    background-color: #10b981;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.side-nav-text {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
}

.side-nav-link:hover .side-nav-text {
    color: #cbd5e1;
}

.side-nav-link.active .side-nav-text {
    color: #10b981;
    font-weight: 600;
}

/* Light mode - nav lateral */
.light .side-nav {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border-color: #cbd5e1 !important;
}

.light .side-nav-link:hover {
    background-color: #f1f5f9 !important;
}

.light .side-nav-link.active {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.light .side-nav-indicator {
    background-color: #94a3b8 !important;
}

.light .side-nav-link:hover .side-nav-indicator {
    background-color: #475569 !important;
}

.light .side-nav-link.active .side-nav-indicator {
    background-color: #10b981 !important;
}

.light .side-nav-text {
    color: #64748b !important;
}

.light .side-nav-link:hover .side-nav-text {
    color: #334155 !important;
}

.light .side-nav-link.active .side-nav-text {
    color: #059669 !important;
}

/* ============================================
   NAVEGAÇÃO MOBILE - INFERIOR
   
   CAUSA RAIZ DO BUG:
   O div interno com min-w-max + overflow-x: auto
   vazava para fora do viewport no celular real.
   A correção usa overflow: hidden no container
   e controla o scroll apenas no wrapper interno.
   ============================================ */

.mobile-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;          /* garante que não ultrapasse */
    z-index: 90;
    background-color: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #334155;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    /* CRÍTICO: bloqueia qualquer vazamento horizontal */
    overflow: hidden;
    /* Safe area para iOS (notch inferior) */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.light .mobile-nav-container {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-top-color: #cbd5e1 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
}

/*
  Wrapper que faz o scroll horizontal INTERNO.
  Importante: width: 100% + overflow-x: auto aqui,
  nunca no container pai.
*/
.mobile-nav-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* scroll suave iOS */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/*
  Track dos ícones.
  CRÍTICO: NÃO usar min-w-max aqui pois força
  a página a expandir no celular real.
  Usar width: max-content só dentro do wrapper com overflow.
*/
.mobile-nav-track {
    display: flex;
    align-items: center;
    width: max-content;   /* expande para caber todos os itens */
    min-width: 100%;      /* ocupa pelo menos a largura da tela */
    padding: 0.4rem 0.5rem;
    gap: 0.125rem;
}

/* Em telas que comportam todos os 10 ícones (≥ 430px),
   centralizar automaticamente */
@media (min-width: 430px) {
    .mobile-nav-track {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    /* evita que o item encolha em telas pequenas */
    min-width: 2.5rem;
}

.mobile-nav-item:hover {
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.4);
}

.mobile-nav-item.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.mobile-nav-item i {
    width: 1.35rem;
    height: 1.35rem;
    stroke-width: 2;
    pointer-events: none;
    /* evita que o ícone cause overflow */
    flex-shrink: 0;
}

/* Light mode - nav mobile */
.light .mobile-nav-item {
    color: #64748b !important;
}

.light .mobile-nav-item:hover {
    color: #0f172a !important;
    background-color: #f1f5f9 !important;
}

.light .mobile-nav-item.active {
    color: #059669 !important;
    background-color: rgba(5, 150, 105, 0.1) !important;
}

/* ============================================
   SCROLLBAR - ESTILO GLOBAL
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 99px;
}

.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-card {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVIDADE - TODOS OS BREAKPOINTS
   
   320px  - celulares muito pequenos
   360px  - celulares pequenos (padrão Android)
   480px  - celulares médios
   640px  - celulares grandes / landscape
   736px  - iPhone Plus / landscape médio   ← novo
   768px  - tablets pequenos
   1024px - tablets grandes / desktop
   ============================================ */

/* ─── MOBILE GERAL (< 1024px) ─────────────── */
@media (max-width: 1023px) {
    /* CRÍTICO: sem padding-bottom no body,
       usar apenas no main para não conflitar com nav fixed */
    body {
        padding-bottom: 0 !important;
    }

    main {
        /* Espaço para a nav mobile fixa (altura ~3.5rem + safe area) */
        padding-bottom: 5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Side nav lateral: esconde em mobile */
    nav[aria-label="Navegação lateral"] {
        display: none !important;
    }

    /* Corrige padding do main que vem do Tailwind (lg:pl-60) */
    main.lg\:pl-60 {
        padding-left: 1rem !important;
    }

    /* Tabelas: scroll interno, nunca extravasa */
    .overflow-x-auto {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Qualquer elemento não pode ultrapassar a tela */
    section,
    .tutorial-card,
    .grid,
    div {
        max-width: 100%;
    }

    /* Quebra de palavra em textos longos */
    p, h1, h2, h3, h4, span, li {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* CTA final: botões empilhados */
    .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .flex.flex-col.sm\:flex-row a,
    .flex.flex-col.sm\:flex-row button {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ─── 320px → 359px (telas muito pequenas) ── */
@media (max-width: 359px) {
    main {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: 5rem !important;
        padding-top: 1.5rem !important;
    }

    header .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    header h1 {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }

    header p.text-xs {
        font-size: 0.6rem !important;
    }

    /* Hero */
    section.text-center h1 {
        font-size: 1.625rem !important;
        line-height: 1.25 !important;
    }

    section.text-center .text-xl {
        font-size: 0.875rem !important;
    }

    /* Títulos de seção */
    h2.text-3xl {
        font-size: 1.2rem !important;
    }

    .tutorial-card {
        padding: 0.875rem;
        border-radius: 0.75rem;
    }

    /* Grids: 1 coluna */
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Nav mobile: ícones menores, espaçados */
    .mobile-nav-item {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
        border-radius: 0.5rem;
    }

    .mobile-nav-item i {
        width: 1.1rem;
        height: 1.1rem;
    }

    .mobile-nav-track {
        padding: 0.3rem 0.25rem;
        gap: 0;
    }

    /* Botão voltar header: só ícone */
    .go-config .hidden-mobile-text {
        display: none;
    }

    /* Tabela demo: fonte menor */
    table {
        font-size: 0.75rem;
    }
}

/* ─── 360px → 479px (celulares pequenos) ──── */
@media (min-width: 360px) and (max-width: 479px) {
    main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 5rem !important;
        padding-top: 2rem !important;
    }

    header h1 {
        font-size: 1.05rem !important;
    }

    /* Hero */
    section.text-center h1 {
        font-size: 1.875rem !important;
        line-height: 1.25 !important;
    }

    section.text-center .text-xl {
        font-size: 0.9375rem !important;
    }

    h2.text-3xl {
        font-size: 1.375rem !important;
    }

    .tutorial-card {
        padding: 1rem;
    }

    /* Grids: 1 coluna */
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Nav mobile: tamanho padrão */
    .mobile-nav-item {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
    }

    .mobile-nav-item i {
        width: 1.2rem;
        height: 1.2rem;
    }

    .mobile-nav-track {
        padding: 0.35rem 0.375rem;
        gap: 0.0625rem;
    }

    table {
        font-size: 0.8125rem;
    }
}

/* ─── 480px → 639px (celulares médios) ─────── */
@media (min-width: 480px) and (max-width: 639px) {
    main {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-bottom: 5rem !important;
        padding-top: 2.5rem !important;
    }

    section.text-center h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    h2.text-3xl {
        font-size: 1.625rem !important;
    }

    .tutorial-card {
        padding: 1.25rem;
    }

    /* Grids: ainda 1 coluna */
    .grid.md\:grid-cols-2,
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Nav mobile cabe toda na tela, centralizar */
    .mobile-nav-track {
        width: 100%;
        justify-content: center;
        gap: 0.125rem;
    }
}

/* ─── 640px → 735px (celulares grandes) ─────── */
@media (min-width: 640px) and (max-width: 735px) {
    main {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-bottom: 5rem !important;
        padding-top: 2.5rem !important;
    }

    section.text-center h1 {
        font-size: 2.75rem !important;
        line-height: 1.2 !important;
    }

    h2.text-3xl {
        font-size: 1.875rem !important;
    }

    .tutorial-card {
        padding: 1.375rem;
    }

    /* Grid 2 colunas disponível */
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Grid 3 → 2 colunas */
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .mobile-nav-track {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }
}

/* ─── 736px → 767px (iPhone Plus / landscape) ── */
@media (min-width: 736px) and (max-width: 767px) {
    main {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-bottom: 5rem !important;
        padding-top: 3rem !important;
    }

    section.text-center h1 {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }

    h2.text-3xl {
        font-size: 2rem !important;
    }

    .tutorial-card {
        padding: 1.5rem;
    }

    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* CTA botões em linha nessa resolução */
    .flex.flex-col.sm\:flex-row {
        flex-direction: row !important;
        align-items: center !important;
    }

    .flex.flex-col.sm\:flex-row a {
        width: auto !important;
    }

    .mobile-nav-track {
        width: 100%;
        justify-content: center;
        gap: 0.375rem;
    }
}

/* ─── 768px → 1023px (Tablets) ─────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    main {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
        padding-bottom: 5rem !important;
        padding-top: 3rem !important;
    }

    section.text-center h1 {
        font-size: 3.25rem !important;
    }

    h2.text-3xl {
        font-size: 2rem !important;
    }

    .tutorial-card {
        padding: 1.5rem;
    }

    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 3 colunas → 2 em tablet */
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* CTA botões em linha */
    .flex.flex-col.sm\:flex-row {
        flex-direction: row !important;
        align-items: center !important;
    }

    .flex.flex-col.sm\:flex-row a {
        width: auto !important;
    }

    .mobile-nav-track {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* ─── 1024px+ (Desktop) ─────────────────────── */
@media (min-width: 1024px) {
    body {
        padding-bottom: 0 !important;
    }

    main {
        padding-left: 15rem !important;
        padding-right: 2rem !important;
        padding-bottom: 3rem !important;
        padding-top: 3rem !important;
    }

    /* Oculta nav mobile no desktop */
    .mobile-nav-container {
        display: none !important;
    }

    /* Restaura grids completos */
    .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* CTA em linha */
    .flex.flex-col.sm\:flex-row {
        flex-direction: row !important;
    }
}